							<!-- Messages -->
							<div class="tabbable"> <!-- Only required for left/right tabs -->
								<ul class="nav nav-tabs">
									<li class="active"><a href="#messages" data-toggle="tab">Messages</a></li>
									<li><a href="#invitations" data-toggle="tab">Invitations</a></li>
								</ul>
								<div class="tab-content">
									<div class="tab-pane active" id="messages">
										
<?php foreach ($messages as $message) {?>
										<div style="width:100%; display:inline-block;">
											<img src="<?php echo profile_img_url( $message->creatorProfileImageSid, 40) ?>" style="float:left; padding:5px">
											<div style="margin-right:50px"><b><a href="<?php echo controller_base_path($requestContext).'/Profile/'.$message->creatorSid;?>"><?php echo $message->creatorDisplayName; ?></a></b><br />
												<?php echo $message->body; ?>
												<br /><?php echo datetime_format_convert($message->createDt, FORMAT_DATE_ISO, $sessionInfo->userInfo['dateFormat']). ' ('. time_ago($message->createDt).' ago)'; ?>
												<div>
													<a href="">Reply </a> | <a href="#">Forward </a> | <a href="#">Delete </a>
												</div>
											</div>
										</div>
										<hr />
<?php } ?>
										
									</div>
									<div class="tab-pane" id="invitations">
<?php foreach ($invitations as $invitation) {?>
										<div style="width:100%; display:inline-block;">
											<img src="<?php echo profile_img_url( $invitation->creatorProfileImageSid, 40) ?>" style="float:left; padding:5px">
											<div style="margin-right:50px"><b><?php echo $invitation->creatorDisplayName; ?> </b><br />
												You were invited to join the Goal '<?php echo $invitation->projectName; ?>' as <?php echo $invitation->type; ?>
												<br /><?php echo datetime_format_convert($invitation->createDt, FORMAT_DATE_ISO, $sessionInfo->userInfo['dateFormat']). ' ('. time_ago($message->createDt).' ago)'; ?>
												<div>
													<a href="<?php echo controller_base_path($requestContext).'/Project/respondrequest?requestUuid='.$invitation->uuid.'&action=a'; ?>">Accept </a>
													| <a href="<?php echo controller_base_path($requestContext).'/Project/respondrequest?requestUuid='.$invitation->uuid.'&action=d'; ?>">Decline </a> 
													| <a href="#">Ignore </a>
												</div>
											</div>
										</div>
										<hr />
<?php } ?>									
									</div>
								</div>
							</div>
							
